﻿
@{
    ViewBag.Title = "HiddenTroubleAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css {
    <link href="~/Assets/css/lib/bootstrap-select.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <style>
        th {
            text-align: center;
            font-weight: bold;
        }

        td {
            text-align: center;
            vertical-align: middle;
        }
    </style>
}
<div class="page-content" ng-cloak ng-controller="SafetyResponsibilityController" ng-init="GetMyResponsibility();">
    <div class="load" ng-show="DataLoading">
        <div class="loader">
            <svg version="1.1" id="loader-1" x="0px" y="0px" width="100px" height="100px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">
            <path fill="#000" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">
            <animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25" dur="0.6s" repeatCount="indefinite" />

			</path>
		</svg>
            <div class="load-msg" ng-bind="LoadingMsg"></div>
        </div>
    </div>
    <div class="page-heading">
        <h1>岗位责任</h1>
        <div class="options">
            <div class="btn-toolbar">

            </div>
        </div>
    </div>
    <ol class="breadcrumb">
        <li><a>主体业务</a></li>
        <li><a>安全责任</a></li>
        <li class="active"><a>岗位责任</a></li>
    </ol>
    <form id="HiddenTroubleForm" class="form-horizontal row-border">
        <div class="container-fluid">
            <div class="row">
                @*<div class="col-md-12">
            <div ng-repeat="x in ResponsibilityDetail" class="panel panel-default">
                <div class="panel-heading"><h2><span class="label label-info">{{x.JobTitle}} <span ng-show="x.Description!=null && x.Description!=''">({{x.Description}})</span></span></h2></div>
                <div class="panel-body">
                    <table class="table table-striped table-bordered table-hover">
                        <tr ng-repeat="y in x.Content track by $index">
                            <td><span class="badge badge-info">{{$index+1}}</span></td>
                            <td style="text-align:left;">{{y}}</td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>*@
                <div class="col-md-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h2>我的责任</h2>
                            <div>
                                <ul class="nav nav-tabs pull-right">
                                    <li ng-repeat="x in ResponsibilityDetail track by $index" ng-class="{'active' :$index==0}"><a href="#tab_{{$index}}" data-toggle="tab">{{x.Title}}<span ng-show="x.Description!=null && x.Description!=''">({{x.Description}})</span></a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="panel-body">
                            <div class="tab-content">
                                <div ng-repeat="x in ResponsibilityDetail track by $index" class="tab-pane" ng-class="{'active' :$index==0}"  id="tab_{{$index}}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <tr ng-repeat="y in x.Content track by $index">
                                            <td><span class="badge badge-info">{{$index+1}}</span></td>
                                            <td style="text-align:left;">{{y}}</td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>



        </div>
    </form>
</div>


@section Js{
    <script src="~/Assets/js/pg/SafetyResponsibility.js?v=@DateTime.Now.ToString("yyyyMMddHHmm")"></script>
}